<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>输出扩展信息</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="reflectionextension.getversion.html">« ReflectionExtension::getVersion</a></li>
      <li style="float: right;"><a href="reflectionextension.ispersistent.html">ReflectionExtension::isPersistent »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.reflectionextension.html">ReflectionExtension</a></li>
    <li>输出扩展信息</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="reflectionextension.info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionExtension::info</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.4, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ReflectionExtension::info</span> &mdash; <span class="dc-title">输出扩展信息</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionextension.info-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionExtension::info</strong></span>(): <span class="type"><span class="type void">void</span></span></div>

  <p class="para rdfs-comment">
   输出“<span class="function"><a href="function.phpinfo.html" class="function">phpinfo()</a></span>”信息中的扩展信息。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionextension.info-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionextension.info-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   扩展信息。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-reflectionextension.info-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-5205">
    <p><strong>示例 #1 <span class="methodname"><strong>ReflectionExtension::info()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$ext&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">ReflectionExtension</span><span style="color: #007700">(</span><span style="color: #DD0000">'mysqli'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ext</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">info</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
mysqli

MysqlI Support =&gt; enabled
Client API library version =&gt; mysqlnd 5.0.5-dev - 081106 - $Revision$
Active Persistent Links =&gt; 0
Inactive Persistent Links =&gt; 0
Active Links =&gt; 0
Persistent cache =&gt; enabled
put_hits =&gt; 0
put_misses =&gt; 0
get_hits =&gt; 0
get_misses =&gt; 0
size =&gt; 2000
free_items =&gt; 2000
references =&gt; 2

Directive =&gt; Local Value =&gt; Master Value
mysqli.max_links =&gt; Unlimited =&gt; Unlimited
mysqli.max_persistent =&gt; Unlimited =&gt; Unlimited
mysqli.allow_persistent =&gt; On =&gt; On
mysqli.default_host =&gt; no value =&gt; no value
mysqli.default_user =&gt; no value =&gt; no value
mysqli.default_pw =&gt; no value =&gt; no value
mysqli.default_port =&gt; 3306 =&gt; 3306
mysqli.default_socket =&gt; no value =&gt; no value
mysqli.reconnect =&gt; Off =&gt; Off
mysqli.allow_local_infile =&gt; On =&gt; On
mysqli.cache_size =&gt; 2000 =&gt; 2000
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionextension.info-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="reflectionextension.getname.html" class="methodname" rel="rdfs-seeAlso">ReflectionExtension::getName()</a> - 获取扩展名称</span></li>
    <li class="member"><span class="function"><a href="function.phpinfo.html" class="function" rel="rdfs-seeAlso">phpinfo()</a> - 输出关于 PHP 配置的信息</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>